//package com.lt.test.consumer.controller;
//
//import com.alibaba.dubbo.config.annotation.Reference;
//import com.lt.test.api.HonestService;
//import com.lt.test.api.KdniaoService;
//import com.lt.test.common.util.HttpClientUtil;
//import com.lt.test.common.util.WebUtils;
//import net.sf.json.JSONObject;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RequestMethod;
//import org.springframework.web.bind.annotation.ResponseBody;
//import org.springframework.web.bind.annotation.RestController;
//
//import javax.servlet.http.HttpServletRequest;
//import javax.servlet.http.HttpServletResponse;
//import java.net.URLDecoder;
//import java.util.*;
//
//@RestController
//@RequestMapping("/product")
//public class WeShopController {
//	// private static final String properiesName = "url.properti1es";
//	private static Properties pps = new Properties();
//
//	@Reference(version = "1.0.0")
//	HonestService honestService;
//
//    @Reference(version = "1.0.0")
//    private KdniaoService kdniaoService;
//	/**
//	 * 获取首页商品信息
//	 */
//	@RequestMapping(value = "/getShopProductList", method =	 { RequestMethod.GET,
//			RequestMethod.POST }, produces = "text/html;charset=UTF-8")
//	public @ResponseBody
//    String getShopProductList(HttpServletRequest request, HttpServletResponse response)
//			throws Exception {
//		request.setCharacterEncoding("UTF-8");
//		response.setCharacterEncoding("UTF-8");
//		String pageIndex = request.getParameter("pageIndex");
//		String pageSize = request.getParameter("pageSize");
//		String typeId = request.getParameter("typeId");
//		String productType = request.getParameter("productType");
//		Map<String, String> data = new HashMap<>();
//		data.put("shopId",request.getParameter("shopId"));
//		data.put("pageSize", pageSize);
//		data.put("pageIndex", pageIndex);
//		data.put("typeId", typeId);
//		data.put("productType", productType);
//		pps.load(this.getClass().getResourceAsStream("/url.properties"));
//		String url = pps.getProperty("getShopProductList");
//		String responseResult = HttpClientUtil.sendPostRequest(url, data, null, null);
//		JSONObject jsonObject = JSONObject.fromObject(responseResult);
//		return "success_jsonpCallback(" + jsonObject + ")";
//	}
//
//	/**
//	 * 获取分类页面导航栏
//	 *
//	 * @param request
//	 * @param response
//	 * @return
//	 * @throws Exception
//	 */
//	@RequestMapping(value = "/getKtProductTypeList", method = { RequestMethod.GET,
//			RequestMethod.POST }, produces = "text/html;charset=UTF-8")
//	public @ResponseBody
//    String getKtProductTypeList(HttpServletRequest request, HttpServletResponse response)
//			throws Exception {
//		Map<String, String> data = new HashMap<String, String>();
//		pps.load(this.getClass().getResourceAsStream("/url.properties"));
//		String url = pps.getProperty("getKtProductTypeList");
//		String responseResult = HttpClientUtil.sendPostRequest(url, data, null, null);
//		JSONObject jsonObject = JSONObject.fromObject(responseResult);
//		return "success_jsonpCallback(" + jsonObject + ")";
//	}
//
//	/**
//	 * 获取分类页面详细商品信息
//	 */
//	@RequestMapping(value = "/getKtProductTypeListInfo", method = { RequestMethod.GET,
//			RequestMethod.POST }, produces = "text/html;charset=UTF-8")
//	public @ResponseBody
//    String getKtProductTypeListInfo(HttpServletRequest request, HttpServletResponse response)
//			throws Exception {
//		Map<String, String> data = WebUtils.getAllParamMap(request);
//		pps.load(this.getClass().getResourceAsStream("/url.properties"));
//		String url = pps.getProperty("getKtProductTypeListInfo");
//		String responseResult = HttpClientUtil.sendPostRequest(url, data, null, null);
//		JSONObject jsonObject = JSONObject.fromObject(responseResult);
//		return "success_jsonpCallback(" + jsonObject + ")";
//	}
//
//	/**
//	 * 获取卡卷信息
//	 */
//	@RequestMapping(value = "/getUserCardList", method = { RequestMethod.GET,
//			RequestMethod.POST }, produces = "text/html;charset=UTF-8")
//	public @ResponseBody
//    String getUserCardList(HttpServletRequest request, HttpServletResponse response)
//			throws Exception {
//		Map<String, String> data = new HashMap<String, String>();
//		String userId = request.getParameter("userId");
//		if (userId == null) {
//			return null;
//		}
//		data.put("userId", userId);
//		pps.load(this.getClass().getResourceAsStream("/url.properties"));
//		String url = pps.getProperty("getUserCardList");
//		String responseResult = HttpClientUtil.sendPostRequest(url, data, null, null);
//		JSONObject jsonObject = JSONObject.fromObject(responseResult);
//		return "success_jsonpCallback(" + jsonObject + ")";
//	}
//
//	/**
//	 * 保存卡卷
//	 */
//	@RequestMapping(value = "/saveUserCard", method = { RequestMethod.GET,
//			RequestMethod.POST }, produces = "text/html;charset=UTF-8")
//	public @ResponseBody
//    String saveUserCard(HttpServletRequest request, HttpServletResponse response)
//			throws Exception {
//		Map<String, String> data = new HashMap<String, String>();
//		String userId = request.getParameter("userId");
//		data.put("userId", userId);
//		data.put("amt", "200");
//		data.put("coinType", "3");
//		data.put("url", "新用户礼包");
//		data.put("type", "25");
//		pps.load(this.getClass().getResourceAsStream("/url.properties"));
//		String url = pps.getProperty("coinIntegral");
//		String responseResult = HttpClientUtil.sendPostRequest(url, data, null, null);
//		JSONObject jsonObject = JSONObject.fromObject(responseResult);
//		return "success_jsonpCallback(" + jsonObject + ")";
//	}
//
//	/**
//	 * 获取卡卷信息
//	 */
//	@RequestMapping(value = "/getCardList", method = { RequestMethod.GET,
//			RequestMethod.POST }, produces = "text/html;charset=UTF-8")
//	public @ResponseBody
//    String getCardList(HttpServletRequest request, HttpServletResponse response) throws Exception {
//		Map<String, String> data = new HashMap<String, String>();
//		pps.load(this.getClass().getResourceAsStream("/url.properties"));
//		String url = pps.getProperty("getCardList");
//		String responseResult = HttpClientUtil.sendPostRequest(url, data, null, null);
//		JSONObject jsonObject = JSONObject.fromObject(responseResult);
//		return "success_jsonpCallback(" + jsonObject + ")";
//	}
//
//
//
//	/**
//	 * 获取商品详细
//	 */
//	@RequestMapping(value = "/getProductInfo", method = { RequestMethod.GET,
//			RequestMethod.POST }, produces = "text/html;charset=UTF-8")
//	public @ResponseBody
//    String getProductInfo(HttpServletRequest request, HttpServletResponse response)
//			throws Exception {
//		Map<String, String> data = new HashMap<String, String>();
//		data.put("shopId", request.getParameter("shopId"));
//		data.put("productCode", request.getParameter("productCode"));
//		data.put("userId", request.getParameter("userId"));
//		pps.load(this.getClass().getResourceAsStream("/url.properties"));
//		String url = pps.getProperty("getProductInfo");
//		String responseResult = HttpClientUtil.sendPostRequest(url, data, null, null);
//		JSONObject jsonObject = JSONObject.fromObject(responseResult);
//		return "success_jsonpCallback(" + jsonObject + ")";
//	}
//
//
//	/**
//	 * 更新购物车
//	 */
//	@RequestMapping(value = "/saveShoppingCart", method = { RequestMethod.GET,
//			RequestMethod.POST }, produces = "text/html;charset=UTF-8")
//	public @ResponseBody
//    String saveShoppingCart(HttpServletRequest request, HttpServletResponse response)
//			throws Exception {
//		Map<String, String> data = new HashMap<String, String>();
//		data.put("shopId", request.getParameter("shopId"));
//		data.put("userId", request.getParameter("userId"));
//		data.put("productCode", request.getParameter("productCode"));
//		data.put("state", request.getParameter("state"));
//		pps.load(this.getClass().getResourceAsStream("/url.properties"));
//		String url = pps.getProperty("saveShoppingCart");
//		String responseResult = HttpClientUtil.sendPostRequest(url, data, null, null);
//		JSONObject jsonObject = JSONObject.fromObject(responseResult);
//		return "success_jsonpCallback(" + jsonObject + ")";
//	}
//
//	/**
//	 * 获取购物车
//	 */
//	@RequestMapping(value = "/getShoppingCart", method = { RequestMethod.GET,
//			RequestMethod.POST }, produces = "text/html;charset=UTF-8")
//	public @ResponseBody
//    String getShoppingCart(HttpServletRequest request, HttpServletResponse response)
//			throws Exception {
//		Map<String, String> data = new HashMap<String, String>();
//		data.put("userId", request.getParameter("userId"));
//		pps.load(this.getClass().getResourceAsStream("/url.properties"));
//		String url = pps.getProperty("getShoppingCart");
//		String responseResult = HttpClientUtil.sendPostRequest(url, data, null, null);
//		JSONObject jsonObject = JSONObject.fromObject(responseResult);
//		return "success_jsonpCallback(" + jsonObject + ")";
//	}
//
//
//	/**
//	 * 获取我的收藏
//	 */
//	@RequestMapping(value = "/getUserCollection", method = { RequestMethod.GET,
//			RequestMethod.POST }, produces = "text/html;charset=UTF-8")
//	public @ResponseBody
//    String getUserCollection(HttpServletRequest request, HttpServletResponse response)
//			throws Exception {
//		Map<String, String> data = new HashMap<String, String>();
//		data.put("userId", request.getParameter("userId"));
//		pps.load(this.getClass().getResourceAsStream("/url.properties"));
//		String url = pps.getProperty("getUserCollection");
//		String responseResult = HttpClientUtil.sendPostRequest(url, data, null, null);
//		JSONObject jsonObject = JSONObject.fromObject(responseResult);
//		return "success_jsonpCallback(" + jsonObject + ")";
//	}
//
//
//
//
//	/**
//	 * 验证码
//	 */
//	@RequestMapping(value = "/sendSMS", method = { RequestMethod.GET,
//			RequestMethod.POST }, produces = "text/html;charset=UTF-8")
//	public @ResponseBody
//    String sendSMS(HttpServletRequest request, HttpServletResponse response)
//			throws Exception {
//		Map<String, String> data = new HashMap<String, String>();
//		data.put("mobile", request.getParameter("mobile"));
//		data.put("type", request.getParameter("type"));
//		data.put("appkey", "clouderp-app");
//		pps.load(this.getClass().getResourceAsStream("/url.properties"));
//		String url = pps.getProperty("sendSMS");
//		String responseResult = HttpClientUtil.sendPostRequest(url, data, null, null);
//		JSONObject jsonObject = JSONObject.fromObject(responseResult);
//		return "success_jsonpCallback(" + jsonObject + ")";
//	}
//	/**
//	 * 注册  register
//	 */
//	@RequestMapping(value = "/register", method = { RequestMethod.GET,
//			RequestMethod.POST }, produces = "text/html;charset=UTF-8")
//	public @ResponseBody
//    String register(HttpServletRequest request, HttpServletResponse response)
//			throws Exception {
//		String time = String.valueOf(new Date().getTime());
//		Map<String, String> data = new HashMap<String, String>();
//		data.put("userType", request.getParameter("userType"));
//		data.put("mobile",request.getParameter("mobile"));
//		data.put("verifyCode", request.getParameter("verifyCode"));
//		data.put("shopId","2861");
//		data.put("thirdSource","face");
//		data.put("appKey", "clouderp-app");
//		data.put("faceId",request.getParameter("mobile")+time);
//		pps.load(this.getClass().getResourceAsStream("/url.properties"));
//		String url = pps.getProperty("register");
//		String responseResult = HttpClientUtil.sendPostRequest(url, data, null, null);
//		JSONObject jsonObject = JSONObject.fromObject(responseResult);
//		return "success_jsonpCallback(" + jsonObject + ")";
//	}
//
//	/**
//	 * 登录
//	 */
//	@RequestMapping(value = "/signin", method = { RequestMethod.GET,
//			RequestMethod.POST }, produces = "text/html;charset=UTF-8")
//	public @ResponseBody
//    String signin(HttpServletRequest request, HttpServletResponse response)
//			throws Exception {
//		Map<String, String> data = new HashMap<String, String>();
//		data.put("u_type", request.getParameter("u_type"));
//		data.put("u_name",request.getParameter("u_name"));
//		data.put("password", request.getParameter("password"));
//		pps.load(this.getClass().getResourceAsStream("/url.properties"));
//		String url = pps.getProperty("signin");
//		String responseResult = HttpClientUtil.sendPostRequest(url, data, null, null);
//		JSONObject jsonObject = JSONObject.fromObject(responseResult);
//		return "success_jsonpCallback(" + jsonObject + ")";
//	}
//
//
//
//	/**
//	 * 获取用户信息
//	 */
//	@RequestMapping(value = "/getMemberInfo", method = { RequestMethod.GET,
//			RequestMethod.POST }, produces = "text/html;charset=UTF-8")
//	public @ResponseBody
//    String getMemberInfo(HttpServletRequest request, HttpServletResponse response)
//			throws Exception {
//		Map<String, String> data = new HashMap<String, String>();
//		String userId =  request.getParameter("userId")==null?" ": request.getParameter("userId");
//		data.put("userId",userId);
//		pps.load(this.getClass().getResourceAsStream("/url.properties"));
//		String url = pps.getProperty("getMemberInfo");
//		String responseResult = HttpClientUtil.sendPostRequest(url, data, null, null);
//		JSONObject jsonObject = JSONObject.fromObject(responseResult);
//		return "success_jsonpCallback(" + jsonObject + ")";
//	}
//
//
//	/**
//	 * 添加到收藏列表
//	 */
//	@RequestMapping(value = "/saveUserCollection", method = { RequestMethod.GET,
//			RequestMethod.POST }, produces = "text/html;charset=UTF-8")
//	public @ResponseBody
//    String saveUserCollection(HttpServletRequest request, HttpServletResponse response)
//			throws Exception {
//		Map<String, String> data = new HashMap<String, String>();
//		/*String shopId =  request.getParameter("shopId")==null?"2644": request.getParameter("shopId");
//		String userId =  request.getParameter("userId");
//		String productCode = request.getParameter("productCode");
//		String state = request.getParameter("state");
//		data.put("shopId",shopId);
//		data.put("userId", userId);
//		data.put("productCode", productCode);
//		data.put("state", state);*/
//		pps.load(this.getClass().getResourceAsStream("/url.properties"));
//		String url = pps.getProperty("saveUserCollection");
//		String responseResult = HttpClientUtil.sendPostRequest(url, data, null, null);
//		JSONObject jsonObject = JSONObject.fromObject(responseResult);
//		return "success_jsonpCallback(" + jsonObject + ")";
//	}
//
//
//
//	/**
//	 * 订单生成
//	 */
//	@RequestMapping(value = "/saveProdOrder", method = { RequestMethod.GET,
//			RequestMethod.POST }, produces = "text/html;charset=UTF-8")
//	public @ResponseBody
//    String  saveProdOrder(HttpServletRequest request, HttpServletResponse response)
//			throws Exception {
//        request.setCharacterEncoding("utf-8");
//		response.setCharacterEncoding("utf-8");
//
//		String custName=URLDecoder.decode(request.getParameter("customerName"),"utf-8");
//		String custAdd=URLDecoder.decode(request.getParameter("customerAddress"),"utf-8");
//
//		Map<String, String> data =WebUtils.getAllParamMap(request);
//		data.put("customerName",custName);
//		data.put("customerAddress",custAdd);
//
//		pps.load(this.getClass().getResourceAsStream("/url.properties"));
//		String url = pps.getProperty("saveProdOrder");
//		String responseResult = HttpClientUtil.sendPostRequest(url, data, null, null);
//		JSONObject jsonObject = JSONObject.fromObject(responseResult);
//		return "success_jsonpCallback(" + jsonObject + ")";
//	}
//
//
//	/**
//	 * 积分查询
//	 */
//	@RequestMapping(value = "/getShopMemberScoreDetail", method = { RequestMethod.GET,
//			RequestMethod.POST }, produces = "text/html;charset=UTF-8")
//	public @ResponseBody
//    String  getShopMemberScoreDetail(HttpServletRequest request, HttpServletResponse response)
//			throws Exception {
//		Map<String, String> data = new HashMap<String, String>();
//		String userId = request.getParameter("userId");
//		String coinType = request.getParameter("coinType");
//		data.put("userId", userId);
//		data.put("coinType", coinType);
//		pps.load(this.getClass().getResourceAsStream("/url.properties"));
//		String url = pps.getProperty("getShopMemberScoreDetail");
//		String responseResult = HttpClientUtil.sendPostRequest(url, data, null, null);
//		JSONObject jsonObject = JSONObject.fromObject(responseResult);
//		return "success_jsonpCallback(" + jsonObject + ")";
//	}
//
//
//	/**
//	 * 卡卷兑换 扣除积分接口
//	 */
//	@RequestMapping(value = "/coinIntegral", method = { RequestMethod.GET,
//			RequestMethod.POST }, produces = "text/html;charset=UTF-8")
//	public @ResponseBody
//    String  coinIntegral(HttpServletRequest request, HttpServletResponse response)
//			throws Exception {
//		Map<String, String> data = new HashMap<String, String>();
//		String userId = request.getParameter("userId");
//		String amt = request.getParameter("amt");//多少积分
//		String coinType = request.getParameter("coinType");
//		String url = request.getParameter("url");
//		String type = "21";
//		data.put("userId", userId);
//		data.put("amt", amt);
//		data.put("coinType", coinType);
//		data.put("url", url);
//		data.put("type", type);
//		pps.load(this.getClass().getResourceAsStream("/url.properties"));
//		String url_ = pps.getProperty("coinIntegral");
//		String responseResult = HttpClientUtil.sendPostRequest(url_, data, null, null);
//		JSONObject jsonObject = JSONObject.fromObject(responseResult);
//		return "success_jsonpCallback(" + jsonObject + ")";
//	}
//
//	/**
//	 * 积分查询接口
//	 * @param request
//	 * @param response
//	 * @return
//	 * @throws Exception
//	 */
//	@RequestMapping(value = "/getUserCoins", method = { RequestMethod.GET,
//			RequestMethod.POST }, produces = "text/html;charset=UTF-8")
//	public @ResponseBody
//    String getUserCoins(HttpServletRequest request, HttpServletResponse response)
//			throws Exception {
//		Map<String, String> data = new HashMap<String, String>();
//		String userId = request.getParameter("userId");
//		data.put("userId", userId);
//		pps.load(this.getClass().getResourceAsStream("/url.properties"));
//		String url_ = pps.getProperty("getUserCoins");
//		String responseResult = HttpClientUtil.sendPostRequest(url_, data, null, null);
//		JSONObject jsonObject = JSONObject.fromObject(responseResult);
//		return "success_jsonpCallback(" + jsonObject + ")";
//	}
//
//	/**
//	 * 保存用户收货地址
//	 * @param request
//	 * @param response
//	 * @return
//	 * @throws Exception
//	 */
//	@RequestMapping(value = "/saveUserDeliveryAddress", method = { RequestMethod.GET,
//			RequestMethod.POST }, produces = "text/html;charset=UTF-8")
//	public @ResponseBody
//    String saveUserDeliveryAddress(HttpServletRequest request, HttpServletResponse response)
//			throws Exception {
//		Map<String, String> data =WebUtils.getAllParamMap(request);
//		pps.load(this.getClass().getResourceAsStream("/url.properties"));
//		String url_ = pps.getProperty("saveUserDeliveryAddress");
//		String responseResult =HttpClientUtil.sendPostRequest(url_, data, null, null);
//		JSONObject jsonObject = JSONObject.fromObject(responseResult);
//		return "success_jsonpCallback(" + jsonObject + ")";
//	}
//
//	/**
//	 * 获取用户收货地址
//	 * @param request
//	 * @param response
//	 * @return
//	 * @throws Exception
//	 */
//	@RequestMapping(value = "/getUserDeliveryAddress", method = { RequestMethod.GET,
//			RequestMethod.POST }, produces = "text/html;charset=UTF-8")
//	public @ResponseBody
//    String getUserDeliveryAddress(HttpServletRequest request, HttpServletResponse response)
//			throws Exception {
//		Map<String, String> data = WebUtils.getAllParamMap(request);
//		pps.load(this.getClass().getResourceAsStream("/url.properties"));
//		String url_ = pps.getProperty("getUserDeliveryAddress");
//		String responseResult = HttpClientUtil.sendPostRequest(url_, data, null, null);
//		JSONObject jsonObject = JSONObject.fromObject(responseResult);
//		return "success_jsonpCallback(" + jsonObject + ")";
//	}
//
//	/**
//	 * 获取用户订单数据
//	 * @param request
//	 * @param response
//	 * @return
//	 * @throws Exception
//	 */
//	@RequestMapping(value = "/getProdOrOperatorOrderList", method = { RequestMethod.GET,
//			RequestMethod.POST }, produces = "text/html;charset=UTF-8")
//	public @ResponseBody
//    String getProdOrOperatorOrderList(HttpServletRequest request, HttpServletResponse response)
//			throws Exception {
//		Map<String, String> data = WebUtils.getAllParamMap(request);
//		pps.load(this.getClass().getResourceAsStream("/url.properties"));
//		String url_ = pps.getProperty("getProdOrOperatorOrderList");
//		String responseResult = HttpClientUtil.sendPostRequest(url_, data, null, null);
//		JSONObject jsonObject = JSONObject.fromObject(responseResult);
//
//		return "success_jsonpCallback(" + jsonObject + ")";
//	}
//
//	/**
//	 * 更新订单状态
//	 */
//	@RequestMapping(value = "/getWxCode", method = { RequestMethod.GET,
//			RequestMethod.POST }, produces = "text/html;charset=UTF-8")
//	public @ResponseBody
//    String getWxCode(HttpServletRequest request, HttpServletResponse response)
//			throws Exception {
//		Map<String, String> data = WebUtils.getAllParamMap(request);
//		pps.load(this.getClass().getResourceAsStream("/url.properties"));
//		String url_ = pps.getProperty("getWxCode");
//		String responseResult = HttpClientUtil.sendPostRequest(url_, data, null, null);
//		JSONObject jsonObject = JSONObject.fromObject(responseResult);
//
//		return "success_jsonpCallback(" + jsonObject + ")";
//	}
//
//	/**
//	 * 获取用户订单详情
//	 * @param request
//	 * @param response
//	 * @return
//	 * @throws Exception
//	 */
//	@RequestMapping(value = "/queryUserOrder", method = { RequestMethod.GET,
//			RequestMethod.POST }, produces = "text/html;charset=UTF-8")
//	public @ResponseBody
//    String queryUserOrder(HttpServletRequest request, HttpServletResponse response)
//			throws Exception {
//		Map<String, String> data = WebUtils.getAllParamMap(request);
//		pps.load(this.getClass().getResourceAsStream("/url.properties"));
//		String url_ = pps.getProperty("queryUserOrder");
//		String responseResult = HttpClientUtil.sendPostRequest(url_, data, null, null);
//		JSONObject jsonObject = JSONObject.fromObject(responseResult);
//
//		return "success_jsonpCallback(" + jsonObject + ")";
//	}
//
//
//	/**
//	 * 申请订单退货
//	 * @param request
//	 * @param response
//	 * @return
//	 * @throws Exception
//	 */
//	@RequestMapping(value = "/refundByOrderId", method = { RequestMethod.GET,
//			RequestMethod.POST }, produces = "text/html;charset=UTF-8")
//	public @ResponseBody
//    String refundByOrderId(HttpServletRequest request, HttpServletResponse response)
//			throws Exception {
//		Map<String, String> data = WebUtils.getAllParamMap(request);
//		pps.load(this.getClass().getResourceAsStream("/url.properties"));
//		String url_ = pps.getProperty("refundByOrderId");
//		String responseResult = HttpClientUtil.sendPostRequest(url_, data, null, null);
//		JSONObject jsonObject = JSONObject.fromObject(responseResult);
//		return "success_jsonpCallback(" + jsonObject + ")";
//	}
//
//
//	@RequestMapping(value="/confirmByOrderId", method={org.springframework.web.bind.annotation.RequestMethod.GET, org.springframework.web.bind.annotation.RequestMethod.POST}, produces={"text/html;charset=UTF-8"})
//	@ResponseBody
//	public String confirmByOrderId(HttpServletRequest request, HttpServletResponse response)
//			throws Exception
//	{
//		Map<String, String> data = WebUtils.getAllParamMap(request);
//		pps.load(getClass().getResourceAsStream("/url.properties"));
//		String url_ = pps.getProperty("confirmByOrderId");
//		String responseResult = HttpClientUtil.sendPostRequest(url_, data, null, null);
//		JSONObject jsonObject = JSONObject.fromObject(responseResult);
//		return "success_jsonpCallback(" + jsonObject + ")";
//	}
//
//	@RequestMapping(value="/userSignIn", method={org.springframework.web.bind.annotation.RequestMethod.GET, org.springframework.web.bind.annotation.RequestMethod.POST}, produces={"text/html;charset=UTF-8"})
//	@ResponseBody
//	public String userSignIn(HttpServletRequest request, HttpServletResponse response)
//			throws Exception
//	{
//		Map<String, String> data = WebUtils.getAllParamMap(request);
//		pps.load(getClass().getResourceAsStream("/url.properties"));
//		String url_ = pps.getProperty("userSignIn");
//		String responseResult = HttpClientUtil.sendPostRequest(url_, data, null, null);
//		JSONObject jsonObject = JSONObject.fromObject(responseResult);
//		return "success_jsonpCallback(" + jsonObject + ")";
//	}
//
//	/**
//	 * 查看是否包邮
//	 * @param request
//	 * @param response
//	 * @return
//	 * @throws Exception
//	 */
//	@RequestMapping(value = "/checkIfNeedPost", method = { RequestMethod.GET,
//			RequestMethod.POST }, produces = "text/html;charset=UTF-8")
//	public @ResponseBody
//    String checkIfNeedPost(HttpServletRequest request, HttpServletResponse response) throws Exception{
//		Map<String, String> data = WebUtils.getAllParamMap(request);
//		pps.load(this.getClass().getResourceAsStream("/url.properties"));
//		String url = pps.getProperty("checkIfNeedPost");
//		String responseResult = HttpClientUtil.sendPostRequest(url, data, null, null);
//		JSONObject jsonObject = JSONObject.fromObject(responseResult);
//		return "success_jsonpCallback(" + jsonObject + ")";
//	}
//
//
//	/**
//	 * 查看积分商城
//	 */
//	@RequestMapping(value="/getCoinExchangeProdList",method = {
//			RequestMethod.GET, RequestMethod.POST},produces = "text/html;charset=UTF-8")
//	public @ResponseBody
//    String getCoinExchangeProdList(HttpServletRequest request, HttpServletResponse response)  throws Exception{
//		Map<String, String> data = WebUtils.getAllParamMap(request);
//		pps.load(this.getClass().getResourceAsStream("/url.properties"));
//		String url = pps.getProperty("getCoinExchangeProdList");
//		String responseResult = HttpClientUtil.sendPostRequest(url, data, null, null);
//		JSONObject jsonObject = JSONObject.fromObject(responseResult);
//		return "success_jsonpCallback(" + jsonObject + ")";
//	}
//
//
//	/**
//	 * 游戏卡卷兑换积分
//	 */
//	@RequestMapping(value = "/exchangeCdk",method = {
//			RequestMethod.GET, RequestMethod.POST},produces = "text/html;charset=UTF-8")
//	public @ResponseBody
//    String exchangeCdk(HttpServletRequest request, HttpServletResponse response)throws Exception{
//		Map<String, String> data = WebUtils.getAllParamMap(request);
//		pps.load(this.getClass().getResourceAsStream("/url.properties"));
//		String url = pps.getProperty("exchangeCdk");
//		String responseResult = HttpClientUtil.sendPostRequest(url, data, null, null);
//		JSONObject jsonObject = JSONObject.fromObject(responseResult);
//		return "success_jsonpCallback(" + jsonObject + ")";
//	}
//
//
//	@RequestMapping(value = "/exchangeProd",method={
//			RequestMethod.GET, RequestMethod.POST},produces = "text/html;charset=UTF-8")
//	public @ResponseBody
//    String exchangeProd(HttpServletRequest request, HttpServletResponse response)throws Exception {
//		Map<String, String> data = WebUtils.getAllParamMap(request);
//		pps.load(this.getClass().getResourceAsStream("/url.properties"));
//		String url = pps.getProperty("exchangeProd");
//		String responseResult = HttpClientUtil.sendPostRequest(url, data, null, null);
//		JSONObject jsonObject = JSONObject.fromObject(responseResult);
//		return "success_jsonpCallback(" + jsonObject + ")";
//	}
//
//
//    @RequestMapping(value = "/kdCheck",method={
//            RequestMethod.GET, RequestMethod.POST},produces = "text/html;charset=UTF-8")
//    public @ResponseBody
//    String kdCheck(HttpServletRequest request, HttpServletResponse response)throws Exception {
//        Map<String, String> data = WebUtils.getAllParamMap(request);
//        String result= kdniaoService.getOrderTracesByJson(data);
//		JSONObject jsonObject = JSONObject.fromObject(result);
//		return "success_jsonpCallback(" + jsonObject + ")";
//    }
//
//
//
//	@RequestMapping(value = "/thirdLogin",method={
//			RequestMethod.GET, RequestMethod.POST},produces = "text/html;charset=UTF-8")
//	public @ResponseBody
//    String thirdLogin(HttpServletRequest request, HttpServletResponse response)throws Exception {
//		Map<String, String> data = WebUtils.getAllParamMap(request);
//		pps.load(this.getClass().getResourceAsStream("/url.properties"));
//		String url = pps.getProperty("thirdLogin");
//		String responseResult = HttpClientUtil.sendPostRequest(url, data, null, null);
//		JSONObject jsonObject = JSONObject.fromObject(responseResult);
//		return "success_jsonpCallback(" + jsonObject + ")";
//	}
//
//	@RequestMapping(value ="/checkCart",method={
//			RequestMethod.GET, RequestMethod.POST},produces = "text/html;charset=UTF-8")
//	public @ResponseBody
//    String checkCart(HttpServletRequest request, HttpServletResponse response)throws Exception {
//		Map<String, String> data = WebUtils.getAllParamMap(request);
///*
//		JSONObject jsonObject = JSONObject.fromObject(result);
//*/
//		return "success_jsonpCallback()";
//	}
//
//
//
//		/**
//         * 从URL获取所有参数列表
//         * @param request
//         * @return
//         */
//    public static HashMap getMap(HttpServletRequest request) throws Exception {
//        HashMap hashMap = new HashMap();
//        Enumeration enums = request.getParameterNames();
//        String paramName = null;
//        String paramValue = null;
//        while (enums.hasMoreElements()) {
//            paramName = (String) enums.nextElement();
//            paramValue = new String(request.getParameter(paramName).getBytes("iso8859-1"),"utf-8");
//            hashMap.put(paramName, paramValue);
//        }
//        return hashMap;
//    }
//
//}
